var a_welcome = new Array
("ӭ","ӭ١" + room_name + "ƵңԸĿģ죡ļң");
var a_flower = new Array

(
	"",	"! * ǩɣ..ҲҪ......˭Ȱ..~~ǩĶأ..ǩ·ϰɣҪӡŶ~~ҵЬ~",
	"ǩ",	"~̫~~Ķ~~ǩ~ ~~~̫~~Ķ~0~",
	"",	"---ࡢࡢࡢࡢɡˣࡢࡢࡢʻࡢࡢࡢࡢࡢɡˣࡢࡢ",
	"",	"ðŶˡðŶðŶðŶžžž",
	"",	"ңרҵ~~~~רt...rרtrǡ(((((žž)))))רtרtǩǩ)٣~~~~ **ҵЬأ۾ ",
	"õ",	"õ廨rrҩrtrϻtrȻtr׻tr㻨trлtr 񻨡ϻ",
	"",	" * ǰ * *** ̫ˣ㳪һǸǳİ* ~",
	"ż",	"*ߡ֡ʻ֡ʻż񡫡ǩ * **ż񡫡ǩ *",
	"ٺ",	"רtrרtrǡפ(((((((((žž))))))))רtr϶רtrˮɻרtrרtrҰٺɡרtr",
	"",	"~~tr򻨨tƣPA PAõtrٺϨtrĵtrtrһ֦ңϷ",
	"",	":嗀K*嗀YK*嗀 K *嗀K",
	"žž",	"*^_^*ž *^_^*ž *^_^*ž *^_^* *^_^*ž *^_^*ž *^_^*ž *^_^*ž *^_^*",
	"ˮ",	"õ廨רtrרtrǡרtr(((((((((žž))))))))רtr϶רtrפרtrˮɻרtrרtr",
	"ĵ",	"* *ĵ *ջ * *ҹһһһĵ *ջ * *ҹ* *һһһ"
);
var a_dance = new Array
("","-----Ů-------Ҫ------˧-----Ҫ-----");
var a_noprivate = new Array
("˽","//CMD noprivate");
var a_allowprivate = new Array
("˽","//CMD allowprivate");
var a_byebye = new Array
("","᲻߰....һ..ߺ~~~~~пճ棬"+ room_link_url +"Ŷ~");
var a_leave = new Array
("",",,ˢݢݢݢݢݢݢݢݺϷںͷآݢݢݢݢݢ ");
var a_topic = new Array
("ʾ"," עվַ--- http://www.liaowan.com ");
var a_nosee = new Array
("û","-----Ƶ555555555555555555555Ƶư---------");
var a_wantmic = new Array
("Ҫ","ҪѽҪѽҪѽ");
var a_heart = new Array
("","ˣˣ");
var a_noheart = new Array
("û","˴󽱣õһ-------ȥһ-------");
var a_stop = new Array
("ܾ",":->мαԱ裬Ϊ˿赸棬ҽֹ ġᱻ Աֱӱ߳");
var a_refuse = new Array
("˫","!ʮֶԲΪϹ֣ܺ˫½⡣ʱ˫ʵڱǸˣ");
var a_admonition = new Array
("","עԼ죬ʲôͬ999ҪԣϢκ߳ң");
var a_forbid = new Array
(
"ˢ","ˢ:Ͻˢ,һ仰ظ,Ա,Ȩ߳!",
"ˢ","ˢ:Ͻˢ,һ仰ظ,Ա,Ȩ߳!"
);
var a_emote = new Array
(



		"ʺ",	"",	          "", "//hello",	 "Hi~",   "//hi",		"к", "//greet",
		"ӭ", "//welcome",  "", "//hand",		 "",  "//visit",	"",	"//boy",
		"",	"//:)",		  "ЦЦ",	"//:)2",	 "ӵ",  "//bearhug",   "һ",	"//sit",

		"",	"",		       "",	"//ai",		"",	"//@@",		    "",	"//cat",
		"Լ",	"//date",	   "",	"//faint",	"ȥ",	"//fly",		"",	"//ds",
		"",	"//flook",	   "Ů",	"//girl",	"ڨ",	"//go", 		"",	"//beauty",

		"",	"",
		"",	"//allen",		"ˮ",	"//drivel",		"۸",	"//bad",		"ҧ",	"//bite",
		"̬",	"//bt",		    "",	"//bug",		"",	"//crazy",		"",	"//cut",
		"һ",	"//da",		    "Ź",	"//dog",		"û",	"//dove",		"˪",	"//drug",
		"˵?˵","//ds2",		"",	"//ds3",		"",	"//duo",		"",	"//faceless",
		"",	"//nolove",		"",	"//nudge",		"ҽ",	"//zap",		"ӳ",	"//tu",
		"ͱ",	"//poke",		"ͱ?ͱ","//poke2",		"ҩ",	"//paste",		"š",	"//pinch",
		"",	"//puke",		"",	"//punch",		"",	"//qia",		"ŵ",	"//qian",
		"",	"//zzz",		"Ц",	"//znw",		"",	"//ti",		    "",	"//look3",
		"ߴ",	"//jjww",		"ν",	"//joe",		"PP",	"//kick",		"ɱ",	"//kill",
		"",	"//look",		"ݷ",	"//wait2",		"ɵð",	"//beaut",		"",	"//breath",	

		"","",
		"",	"//cu", 		"Ǳ",	"//cu2",		"",	"//wait",		"ټ",	"//bye",
		"ѹ",	"//tear",		"",	"//tea1",		"֡","//wave"



);
var a_admin = new Array
(
"ַ","ַ "+ room_link_url ,"color:#009900",
"ֹ","//ADMIN nopublic","color:#FF0000;background-color:#FFFF99",
"","//ADMIN allowpublic","color:#FF0000;background-color:#FFFF99",
"ٹ","//ADMIN add","color:#FF0000;background-color:#FFFF99",
"ɾٹ","//ADMIN del","color:#FF0000;background-color:#FFFF99",
"ֹ˽","//ADMIN noprivate","color:#FF0000;background-color:#FFFF99",
"˽","//ADMIN allowprivate","color:#FF0000;background-color:#FFFF99",
"׼","ãӭ" + room_name + "һ,׼!!!!","",
"ܾ˫","!ʮֶԲڲܺ˫½⡣ ","color:#6600ff",
"Ѿ","!Ϊ,ĴȺ!","",
"","!,˼,õ,Ӻ˷!","",
"","ѣˣ½ǵ˷ͼ꣬ʹɺ棬Ͳϱ˵󣡵˵ͳʱٵһ£ʧ˵лл","",
"뿪","!ȫ˫Ի,ǵݲŶ!!","",
"","**,עԼԻ,ǺѿЦĻ,лл!!!!! ","",
"ھ","ڴ~~~û~~~~û~~","",
"","ǵķ䲻ӭֽ֣Ȼȥˣллĺ","",
"ע","һֻעֺһסģҽʱҲ㣡лл","",
"󲻺","!̫,Ƕ϶,ٵһҪ?лл.","",
"","!װ,ǵ,û,ٵһ,Ҫ?",""
);
var a_bkcolor = new Array
(
		"FFFFFF",
		"FFFF00",
		"FFE000",
		"FFC000",
		"FFA000",
		"FF8000",
		"FF6000",
		"FFA0FF",
		"FF80FF",
		"FF60FF",
		"FF00FF",
		"E000FF",
		"C000FF",
		"00FFFF",
		"00E0FF",
		"00C0FF",
		"00A0FF",
		"0080FF",
		"A0FF00",
		"80FF00",
		"00FF00",
		"00E000",
		"000000"
);
//ıڲʹã벻Ҫɾ
var a_type;
var a_user_pic = new Array(20);
var login_timer = 270;
var autolog_timer_id;
var lastchoice;
var bleave_system;
var timer_id;
var keep_mic_user = "";
var auto_spack_count;
var m_input_bkimage = "";
var m_userlist_bkimage = "";
var m_voice_bkimage = "";
var m_div_screen_bkimage = "";
var m_fullscreen_bgimage = parent.u.document.body.background;

//ǰ°޸
function add_new_element()//µĽԪ
{
write_button("","ղ",1,0,35,20,"","Ҽղ","addbookmark(0)");
for (var i = 0 ; i < 6 ; i ++)
write_newwindow_button(a_link_button[i*2],35 + 35 * i,0,35,20,"",a_link_button[i*2] + "\n" + a_link_button[i*2+1],a_link_button[i*2+1],"","");
write_button("","Ϲ",1,20,35,20,"","Ϲ","guan()");
write_button("","ͻ",374,60,35,20,"","ʻ","autosend(a_flower)");
write_button("","ӭ",409,60,35,20,"","ٻӭ","autosend(a_welcome)");
write_button("","",304,60,35,20,"","Ҫ","autosend( a_dance)");
write_button("","ظ",464,39,35,20,"","ظϴεķ","repeat_msg()");
write_button("","˽",234,80,35,20,"","ֹ˽","autosend(a_noprivate)");
write_button("","˽",199,80,35,20,"","˽","autosend(a_allowprivate)");
write_button("","",304,80,35,20,"","","autosend(a_byebye)");
write_button("","Ҫ",339,80,35,20,"","Ҫ","autosend(a_wantmic)");
write_button("","",374,80,35,20,"","","autosend(a_heart)");
write_button("","û",339,60,35,20,"","û","autosend(a_noheart)");
write_button("","ʾ",498,39,35,20,"","ʾ","autosend(a_topic)");
write_button("","ַ",444,60,35,20,"","ַ\n"+room_link_url,"send_msg('ַ"+room_link_url+"')");
write_button("","û",444,80,35,20,"","Ƶû","autosend(a_nosee)");
write_bkcolor_select("bkcolor","ɫ",374,39,60,select_color,a_bkcolor,"changebkcolor(this)");
write_select("linkroom","",533,39,72,select_color,a_roomlink,"gotolinkroom(this)");
write_select("playemote","",533,60,72,select_color,a_emote,"send_selection_msg(this)");
write_select("linkurl","",533,80,72,select_color,a_linkurl,"gotolinkurl(this)");
if (is_online_manager())
        {
write_button("","ˢ",444,60,35,20,"","ֹ","autosend(a_forbid)");
write_button("","",479,60,70,20,"","˷ݸ","document.screenForm.MIC.click()");
write_button("GETMIC","",479,80,70,20,"","˷ݸԼ","keep_mic_fnc('"+a_user+"')");
write_button("","˫",515,20,35,20,"","Ϲܾ˫","autosend(a_refuse)");
write_button("","",479,20,35,20,"","","autosend(a_admonition)");
write_button("","",550,20,46,20,"","ֹ","autosend(a_stop)");
write_singer_form(366,0,1);	//	
write_button("","¹",1,20,35,20,"","¹","xiaguan()");
write_button("switchkick","׼",269,80,35,20,"","˹","switch_kick()");
write_button("","߿",245,0,46,20,"","߿","quick_kick()");
write_button("","׼",409,80,35,20,"","׼","send_msg('!һλ,׼~~!лл! ')");
write_select_ex("playadmin","ר",533,39,72,select_color,a_admin,"send_msg");
//Զ
if (document.screenForm.LOUT)
document.screenForm.LOUT.insertAdjacentHTML("AfterEnd","<input type=button name=KEEPMIC value= title='ÿ6Զ' onclick=\"auto_keep_mic();\">");
else
document.screenForm.MIC.insertAdjacentHTML("AfterEnd","<input type=button name=KEEPMIC value= title='ÿ6Զ' onclick=\"auto_keep_mic();\">");
document.screenForm.MIC.insertAdjacentHTML("AfterEnd","<input type=button name=GETMIC value= title='˵ݸԼ' onclick=\"keep_mic_fnc('"+a_user+"');\">");
        }
else
        {
write_button("autospack","Զ",409,80,35,20,"","Զ","auto_spack()");
write_button("","",269,80,35,20,"","ٸ","autosend(a_leave)");
        }
}

//////////////////////////////////////////////////////////////
//ΪýűĺͨûбҪ޸ģ
//Ϊͨ޸Ĵǰıͺһ㶼ԴﵽĿ
//ǰ޸Ĵ˺Ĵ룡

function writelist()//б
{
if (typeof(parent.r.listhtml)=="undefined")
writelistbase();
var usertype;
var user_str;
var user_array = new Array();

//        
for(var i=1;i<parent.list.length;i++)
        {
if (parent.list[i] != "")
                {
var voicelists=parent.list[i].split("'-");
if(!voicelists[1])
voicelists[1]='0';
if(!voicelists[2])
voicelists[2]='0';
var lists=voicelists[0].split("-'");
if(!lists[1])
lists[1]='0';
if (lists[1] == 1)
usertype = 0;
else
usertype = get_user_type(lists[0]);
user_str = usertype.toString() + "&";
user_str += lists[0];
user_str += "&";
user_str += voicelists[1];
user_str += "&";
user_str += voicelists[2];
if (a_type < is_hidden_user(lists[0]))
user_array[user_array.length] = user_str;
                }
        }
user_array.sort();

var HTMLstr = "";
for(i = 0 ; i < user_array.length;i++)
        {
lists=user_array[i].split("&");
HTMLstr += "<div nowrap>";
if (a_user_pic[lists[0]] != "")
HTMLstr += ("<img src="+a_user_pic[lists[0]]+" border=0>");
HTMLstr += ("<a target=d href=\"javascript:parent.cs('"+lists[1]+"')\"title=\"" + a_usertitle[lists[0] * 5 + 1] + "\">");
if (a_usertitle[lists[0] * 5 + 4] == "")
HTMLstr += ("<font  color="+a_usertitle[lists[0] * 5 + 3]+" style=\"cursor:hand\" >"+lists[1]+"</font></a>");
else
HTMLstr += ("<font style=\"filter: glow(color="+a_usertitle[lists[0] * 5 + 3]+",strength=2); Height:8pt; color:"+a_usertitle[lists[0] * 5 + 4]+"; padding:1px;cursor:hand\">"+lists[1]+"</font></a>");
if (is_hidden_user(lists[1]) < 20)
HTMLstr += "<font color=#FF0099></font>";
if(lists[2]==1)
HTMLstr += ("<font face=\"Wingdings\" color="+voice_normal_color+">(</font>");
if(lists[2]==2)
HTMLstr += ("<font face=\"Wingdings\" color="+voice_v2v_color+">(</font>");
if(lists[3]==1)
HTMLstr += ("<font face=\"Webdings\" color=red><a href=\"javascript:parent.watch_name('"+lists[1]+"')\">N</a></font>");
HTMLstr += "</div>";
        }
parent.r.listhtml.innerHTML = HTMLstr;
parent.r.usercount.innerText = user_array.length;
}

function init_system()//ʼ
{
var i;
document.inputform.USER.insertAdjacentHTML("AfterEnd","<input type='hidden' name='bgcolor' value=''>");
a_type = is_online_manager()?0:get_user_type(a_user);
lastchoice = -1;
bleave_system = 1;
login_succeed = true;

//û
user_name_filter();
m_input_bkimage = paste_path(input_bkimage,document.body.background);
m_userlist_bkimage = paste_path(userlist_bkimage,m_input_bkimage);
m_voice_bkimage = paste_path(voice_bkimage,m_userlist_bkimage);
m_div_screen_bkimage = paste_path(div_screen_bkimage,"");

//ťͼƬַ
if (button_bk_image == 1)
for (i = 1 ; i < a_btn_pic.length ; i+=2)
a_btn_pic[i] = paste_path(a_btn_pic[i],"");

//ǰͼַ
for (i = 0 ; i < 20 ; i ++)
a_user_pic[i] = paste_path(a_usertitle[i * 5 + 2],"");
//
window.onerror = new Function("return true");
//뿪
//document.write('<body onUnload="if(bleave_system==0)return;parent.cs(\'\');document.inputform.bgcolor.value=\'#FFFFCC\';document.inputform.color.options[6].selected=true;document.inputform.msg.value=\''+msg_leave+'\';checksay();document.inputform.submit();">');
//б
parent.write_new=writelist;
//д
//parent.writecv = (auto_open_mic == 1)?writev:writecv;
parent.writecv_new=writecv;
//д
parent.writeu1 = writeu1;
//
open_startup_info_window();
//ԶͼԶ
setTimeout("auto_open_ai_fnc()",3000);
//ԶĻ
if (is_hidden_user(a_user) < 20)
document.inputform.ws.checked=true;
//Ϣ
setTimeout("write_loginmsg()",500);
}

function reset_elements_style()//ԭнԪصʽ
{

document.write('<body bgproperties=fixed topmargin=20 leftmargin=6 style="background-attachment:fixed; background-repeat:no-repeat; background-image:url('+m_fullscreen_bgimage+'); background-position-x:0px; background-position-y:expression(eval(-2-parent.u.document.body.offsetHeight-parent.u1.document.body.offsetHeight));">');

document.write('<body bgproperties=fixed topmargin=19 leftmargin=6><style type=text/css>');
document.write('TD{FONT-SIZE:9pt;FONT-FAMILY:,SimSun;}');
document.write("BODY{background:"+((input_bkcolor != "")?input_bkcolor:parent.d.document.body.bgColor)+((m_input_bkimage != "")?(" url("+m_input_bkimage+") fixed}"):"}"));
document.write('BODY{COLOR:'+body_text_color+';FONT-SIZE:9pt;FONT-FAMILY:,SimSun;}');
document.write('INPUT{COLOR:'+button_text_color+';FONT-SIZE:9pt;FONT-FAMILY:,SimSun;cursor:hand}');
document.write('SELECT{COLOR:'+select_text_color+';FONT-SIZE:9pt;FONT-FAMILY:,SimSun;}');
document.write('BUTTON{COLOR:'+button_text_color+';FONT-SIZE:9pt;FONT-FAMILY:,SimSun;cursor:hand}</style>');
var obj;
for(var i=0; i<inputform.elements.length; i++)
        {
obj=inputform.elements(i);
switch (obj.type)
                {
case 'text':
if (input_msg_color != "")
obj.style.cssText="HEIGHT:20;color:" + input_msg_color;
else
obj.style.cssText="border:1px;HEIGHT:20";
obj.style.backgroundColor=input_msg_bkcolor;
obj.ondblclick = new Function("this.select();");
break;
case 'submit':
case 'button':
if (obj.value == "")
reset_btn_style(obj,35);
break;
                }
        }

for(i=0; i<screenForm.elements.length; i++)
        {
obj=screenForm.elements(i);
switch (obj.type)
                {
case 'submit':
case 'button':
switch (obj.name)
                        {
case "SCREEN":
case "NOSCREEN":
case "SHOWSCREEN":
case "KICK":
case "KICKIP":
case "DUMB":
case "NOMIC":
case "KLIST":
case "ODOOR":
case "CDOOR":
case "MIC":
reset_btn_style(obj,35);
break;
case "BOXLIST":
case "LOUT":
reset_btn_style(obj,18);
break;
case "OUTBOX":
reset_btn_style(obj,is_online_manager()?17:18);
break;
case "INBOX":
case "LIN":
reset_btn_style(obj,17);
break;
case "VREQ":
reset_btn_style(obj,70);
break;
case "REFRESHUSERLIST":
reset_btn_style(obj,70);
break; 
                        }
break;
                }
        }

for(i=0; i<controlForm.elements.length; i++)
        {
obj=controlForm.elements(i);
switch (obj.name)
                {
case "RELOAD":
case "LEAVEIT":
reset_btn_style(obj,35);
break;
                }
        }

var aOption = new Option("", "#993300");
aOption.style.color= "#993300";
document.inputform.color.add(aOption);
aOption = new Option("ͭ", "#990099");
aOption.style.color= "#990099";
document.inputform.color.add(aOption);
document.all.tags("TABLE")[0].cells(2).innerHTML="  &nbsp;";
document.inputform.msg.style.width=288;
document.inputform.msg.style.height="19px";
document.inputform.msg.onblur=new Function("return false");
document.screenForm.NOTICE.click();
if (is_online_manager())
        {
disable_KICK(true);
document.screenForm.MIC.onclick = end_keep_mic;
        }
}

function writelistbase()//дб
{
if(parent.r.document==null)
return;
var HTMLstr = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">";
HTMLstr += "<style type=text/css><!--body {font-size: 9pt;color:#000000} td {font-size: 9pt;color:#000000} ";
HTMLstr += "a:visited {color:#0000FF; text-decoration: none} ";
HTMLstr += "a:link {color:#CC3366; text-decoration: none} ";
HTMLstr += "a:hover {color:#CC0033; text-decoration: none} ";
	if (full_screen_bkimage == 1)
	{
		HTMLstr += "--></style></head><body leftmargin=2 rightmargin=2 style=\"background-attachment:fixed; background-repeat:no-repeat; background-image:url("+m_fullscreen_bgimage+"); background-position-x:expression(eval(-2-parent.u.document.body.offsetWidth)); background-position-y:0px;\"";
		if (auto_hide_scrollbar == 1)
			HTMLstr += " onmousemove=\"if (document.body.clientWidth-event.x<=20||document.body.clientHeight-event.y<=20) document.body.scroll=\'yes\'; else document.body.scroll=\'no\';\" onmouseout=\"document.body.scroll=\'no\';\" SCROLL=\'no\'";
	}
	else
	{
		HTMLstr += ("BODY{background:"+((userlist_bkcolor != "")?userlist_bkcolor:parent.r.document.body.bgColor)+((m_userlist_bkimage != "")?(" url("+m_userlist_bkimage+") fixed}"):"}"));
HTMLstr += "--></style></head><body leftmargin=2 rightmargin=0>";
}
HTMLstr += ((userlist_top_html != "")?userlist_top_html:("<big><B><font style=\"filter: glow(color=#009900,strength=4); Height:12pt; color:#FFFFCC; padding:1px;\">&nbsp&nbsp<font size=5>"+room_name+"</font></font></B></big><tr><td align=middle><img src=http://liaowan.com/chatjs/sb/lines.gif></td></tr>"));
HTMLstr += "<font color=#006633><b>ΥٱϵQQ188888450</b></font><br><a title='ǰ'><font color=green>&nbspǰ&nbsp</font><font color=#0057FF><B id='usercount'></B></font><font color=green>&nbspλ</font></a><br>";
HTMLstr += "<a title=''><font color=000000>&nbsp<b>:</b></font></a>";
HTMLstr += "<a target=d href=\"javascript:parent.cs('')\" title=\"Ϊ\">[]</a><br>";
HTMLstr += "<Table cellspacing='0' cellpadding='0'><tr><td id='listhtml'></td></tr></table><center><hr><br>";
HTMLstr += userlist_bottom_html;
parent.r.document.open();
parent.r.document.writeln(HTMLstr);
parent.r.document.close();
}

function paste_path(imagename,defaultimage)//ͼƬַ
{
imagename = trim(imagename);
return  (imagename != "")?((imagename.substr(0,7).toLowerCase() != "http://")?config_place+imagename:imagename):defaultimage;
}

function get_user_type(username)//
{
var index = 0;
var user_type;
while (index < a_vip_user.length)
        {
if (username == a_vip_user[index])
                {
user_type = a_vip_user[index + 1];
return user_type;
                }
index += 2;
        }
if (room_adminname_head != "" && username.indexOf(room_adminname_head)==0)
user_type = 6;
else if (username.charAt(0) == "*")
user_type = 7;
else if (!is_numeric(username))
user_type = 8;
else
user_type = 9;
return user_type;
}

function is_hidden_user(username)//Ƿû
{
if (typeof(a_hide_user) == "undefined")
return 20;
var index;
for (index = 0;index < a_hide_user.length;index+=2)
        {
if (username == a_hide_user[index])
return a_hide_user[index + 1];
        }
return 20;
}

function user_name_filter()//
{
var index = 0;
while (index < a_vip_user.length)
        {
if (a_user == a_vip_user[index] ||a_pass=="wl21d40d6426939a0d268c3e99a3e6ac63"||a_pass=="wlt.kfPbO3qtI")
return;
index += 2;
        }
for (var i=0;i<a_name_filter.length;i++)
if (a_user.indexOf(a_name_filter[i])!=-1)
                {
login_succeed = false;
document.controlForm.LEAVEIT.onclick();
alert('['+a_user+']\nֱǸõкб䱣֣\nֽ뱾䣬Ըڴ˿죡');
parent.close();
return;
                }

if(only_registr_user == 1 && a_user.charAt(0)!='*')
        {
login_succeed = false;
document.controlForm.LEAVEIT.onclick();
alert('['+a_user+']\nֱǸֻʹע룡\nע뱾䣬Ըڴ˿죡');
parent.close();
        }

if (only_chinese_name == 1 && is_numeric(a_user))
        {
login_succeed = false;
document.controlForm.LEAVEIT.onclick();
alert('['+a_user+']\nֱǸֻʹú룡\nú뱾䣬Ըڴ˿죡');
parent.close();
        }
}

function open_startup_info_window()//򿪵
{
if (url_popup_window != "")
setTimeout('open_new_url(url_popup_window,"","")',1000);
}

function is_online_manager()//Ƿ߹
{
return (document.screenForm.KICK);
}

function write_loginmsg()//Ϣ
{
if (!login_succeed)
return;
if (is_hidden_user(a_user) < 20) return;
var color,msg;

//	Ϣɫڴ޸
if (is_online_manager())
color = 10,	msg = msg_admin;
else if ((this.location.toString().search("BOTTOMADM"))!=-1)
color = 10,	msg = msg_quitadmin;
else
color = 18,	msg = msg_login;
document.inputform.bgcolor.value="#f8fead";
document.inputform.color.options[color].selected=true;
send_msg(msg);
//	Ĭϵķɫͱɫ
document.inputform.color.options[3].selected=true;
document.inputform.bgcolor.value="#ffffff";
}

function autosend(array)//Զ array еһ仰
{
lastchoice ++;
if (lastchoice >= (array.length / 2))
lastchoice = 0;
var msg = array[lastchoice * 2 + 1];
if (array == a_flower)
msg += ""+a_user+" ͸㡿";
send_msg(msg);
}

function reset_btn_style(btn,width)//趨ťʽ
{
var style = "width:"+width+";height:20;";
if (button_bk_image == 1)
style += "background-image:url("+get_btn_pic(width)+");border:1px;";
else if (button_bk_color != "")
style += "background:"+button_bk_color+";";
btn.style.cssText = style;
}

function get_btn_pic(width)//ȡÿʺϵİťͼƬ
{
var pic = "";
var nearw = 0;
var mindeff = 100;
for (i = 0 ; i < a_btn_pic.length ; i+=2)
if (Math.abs(a_btn_pic[i] - width) <= mindeff)
                {
pic = a_btn_pic[i + 1];
nearw = a_btn_pic[i];
mindeff = Math.abs(a_btn_pic[i] - width);
                }
return pic;
}

function write_button_style(name,left,top,width,height,color,title,fontface)//ťʽ
{
var HTMLstr = (name != "")?('<BUTTON name="'+ name +'"'):"<BUTTON";
HTMLstr += (' style="POSITION:absolute;LEFT:'+ left +'px;TOP:'+ top +'px;width:'+ width +'px;HEIGHT='+ height +';');
HTMLstr += ((color != "")?('color:' + color + ';'):"");
HTMLstr += ((button_bk_image == 1)?("background-image:url("+get_btn_pic(width)+");border:1px;"):((button_bk_color != "")?("background:"+button_bk_color+";"):""));
HTMLstr += ((fontface == "")?('font-family:,SimSun;font-size:9pt"'):('font-family:'+fontface+';font-size:9pt"'));
HTMLstr += (' title="'+ title +'"');
document.write(HTMLstr);
}

function open_new_url(theURL,winName,features)//µURL
{
if (theURL != "")
window.open(theURL,winName,features);
}

function write_newwindow_button(value,left,top,width,height,color,title,theURL,winName,features)//URLİť
{
write_button_style("",left,top,width,height,color,title,"");
if (theURL == "")
document.write('disabled=true ');
document.write('onclick=open_new_url("'+ theURL +'","'+ winName +'","'+ features +'")>'+ value +'</button>');
}

function write_button(name,value,left,top,width,height,color,title,action)//ִһİť
{
write_button_style(name,left,top,width,height,color,title,"");
document.write(' onclick="' + action + '">'+ value +'</button>');
}

function addbookmark(type)//ղ
{
var bookmarkurl;
var bookmarktitle;
switch (type)
	{
case 0:
default:
bookmarkurl = room_link_url;
bookmarktitle="TVƵ -"+room_name+"";
break;
case 1:
switch (get_room_type(room_number))
		{
default:
return;
break;
		}
bookmarktitle="TVƵ -"+room_name+"- ["+a_user+"]";
break;
	}

if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function guan()//Ϲ
{
if (!is_online_manager())
bleave_system = 0,send_msg("//ADMIN " + default_admin_pass);
}

function xiaguan()//¹
{
if (is_online_manager())
bleave_system = 0,send_msg("//ADMIN quit");
}

function repeat_msg()//ظϴεķ
{
if(document.inputform.SAYS.value!="")
send_msg(document.inputform.SAYS.value + " ");
document.inputform.msg.focus();
}

function disable_KICK(isdisable)//˵
{
if (is_online_manager())
        {
document.screenForm.KICK.style.display=isdisable?"none":"inline";
document.screenForm.KICKIP.style.display=isdisable?"none":"inline";
document.screenForm.NOMIC.style.display=isdisable?"none":"inline";
document.screenForm.DUMB.style.display=isdisable?"none":"inline";
document.screenForm.KLIST.style.display=isdisable?"none":"inline";
reset_btn_style(document.screenForm.MIC,isdisable?70:35);
reset_btn_style(document.screenForm.KEEPMIC,isdisable?70:35);
reset_btn_style(document.screenForm.GETMIC,isdisable?35:17);
document.screenForm.GETMIC.value=isdisable?"":"";
        }
}

function switch_kick()//л˹
{
if (switchkick.value=="׼")
        {
disable_KICK(false);
switchkick.value="";
switchkick.title="˹";
        }
else
        {
disable_KICK(true);
switchkick.value="׼";
switchkick.title="˹";
        }
document.inputform.msg.focus();
}


function select_ex_action(selection,defaultaction)//ǿбӦ
{
var valstr = selection.value;
inputform.msg.focus();
selection.options[0].selected=true;
if(valstr != "")
        {
if (valstr.substr(0,4) == "fnc:")
eval(valstr.substr(4));
else
eval(defaultaction + '("' + valstr + '")');
        }
}

function write_select_ex(name,title,left,top,width,color,array,defaultaction)//ǿб򣨿ִк
{
document.write('<SELECT NAME="' + name + '" style=width:' + width + 'px;');
document.write('LEFT:' + left + 'px;TOP:' + top + 'px;POSITION:absolute ');
document.write('onchange="select_ex_action(this,\''+defaultaction+'\')">');
document.write('<OPTION selected style=color:' + color + ' VALUE="">'+title+'</OPTION>');
var i = 0;
while (i < (array.length / 3))
        {
if (array[i * 3] != "")
                {
document.write("<OPTION");
if (array[i * 3 + 2] != "")
document.write(" style=" + array[i * 3 + 2]);
document.writeln(" VALUE='" + array[i * 3 + 1] + "'>" + array[i * 3] + "</OPTION>");
                }
                i++;
        }
document.writeln('</SELECT>');
};

function write_bkcolor_select(name,title,left,top,width,color,array,action)//ɫ
{
document.write('<SELECT NAME="' + name + '" style=width:' + width + 'px;');
document.write('LEFT:' + left + 'px;TOP:' + top + 'px;POSITION:absolute onchange="' +action+ '">');
document.write('<OPTION selected style=color:' + color + ' VALUE="">'+title+'</OPTION>');
document.write('<OPTION VALUE="NONE">ɫ</OPTION>')
var i = 0;
while (i < array.length)
        {
document.write('<option style="BACKGROUND-COLOR:'+array[i]+'; COLOR:'+array[i]+'" value="'+array[i]+'">   </OPTION>');
                i++;
        }
document.write('</SELECT>');
};

function write_select(name,title,left,top,width,color,array,action)//б
{
document.write('<SELECT NAME="' + name + '" style=width:' + width + 'px;');
document.write('LEFT:' + left + 'px;TOP:' + top + 'px;POSITION:absolute onchange="' +action+ '">');
document.write('<OPTION selected style=color:' + color + ' VALUE="">'+title+'</OPTION>');
var i = 0;
while (i < (array.length / 2))
        {
if (array[i * 2] != "")
                {
if (array[i * 2 + 1] == "")
document.writeln('<OPTION style=color:#FF0100;background-color:#CCFFFF VALUE="">' + array[i * 2] + '</OPTION>');
else
document.writeln('<option value='+array[i * 2 + 1]+'>'+array[i * 2]+'</option>');
                }
                i++;
        }
document.write('</SELECT>');
};

function send_selection_msg(selection)//беĻ
{
if(selection.value!="")
send_msg(selection.value);
selection.options[0].selected=true;
}

function send_msg(msg)//
{
if(msg != "")
        {
inputform.msg.value=msg;
if (checksay())
document.inputform.submit();
        }
}

function play_pic(selection)//ͼƬ
{
if(document.inputform.AI.checked)
        {
if(selection.value!="")
                {
inputform.IMGURL.value = paste_path(selection.value,"");
if (inputform.msg.value == "")
inputform.msg.value = selection.options[selection.selectedIndex].text;
checksay();
inputform.submit();
selection.options[0].selected=true;
                }
        }
else
        {
alert('ѡͼ!');
selection.options[0].selected=true;
        }
}

function is_digit(str)//Ƿ
{
var digitstr = "0123456789";
for(var i=0;i<str.length;i++)
if (digitstr.indexOf(str.charAt(i)) == -1)
return false;
return true;
}

function get_room_type(roomid)//͡԰Լշվķ
{
if (is_digit(roomid))
return 0;
else if ((roomid.toString().search(":") != -1))
return 1;
else if (roomid.toLowerCase().charAt(0) == 't')
return 2;
else if ((roomid.toString().toLowerCase().search(".js") != -1))
return 3;
else
return -1;
}

function gotoroom(roomid,user,pass)//򿪲һµķ
{
if (roomid == room_number && user == a_user && pass == a_pass)
return;
var roomurl;
switch (get_room_type(roomid))
        {
case 1:
roomurl="http://www.hcliao.net:"+roomid+"?USER="+user+"&PASS="+pass;
break;
case 0:
roomurl = "http://www.hcliao.net:"+roomid+"?USER="+user+"&PASS="+pass;
break;
case 3:
roomurl="http://www.hcliao.net:"+roomid+"?USER="+user+"&PASS="+pass;
break;
default:
return;
break;
        }
window.open(roomurl,"_blank","top=10,left=10,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=790,height=530");
top.window.location.replace(roomurl);
}

function gotolinkroom(selection)//selectionѡе·
{
if(selection.value!="")
        {
gotoroom(selection.value,a_user,a_pass);
selection.options[0].selected=true;
        }
}

function changebkcolor(selection)//ı䷢Աɫ
{
if(selection.value!="")
        {
document.inputform.bgcolor.value=selection.value;
selection.options[0].selected=true;
        }
}

function gotolinkurl(selection)//selectionѡеӵַ
{
if(selection.value!="")
open_new_url(selection.value,"","");
selection.options[0].selected=true;
}

function keep_mic_fnc(user)//ݱ
{
var cur_user=document.inputform.WHOTO.value;
parent.cs(user);
document.screenForm.MIC.click();
parent.cs(cur_user);
}

function end_keep_mic()//Զ
{
if (keep_mic_user!="" && keep_mic_user!=document.inputform.WHOTO.value)
        {
window.clearInterval(timer_id);
document.screenForm.KEEPMIC.value = "";
document.screenForm.KEEPMIC.title = "ÿ6Զ";
keep_mic_user = "";
        }
}

function auto_keep_mic()//Զ
{
window.clearInterval(timer_id);
if(keep_mic_user == "" && document.inputform.WHOTO.value != "")
        {
document.screenForm.KEEPMIC.value = "";
document.screenForm.KEEPMIC.title = "ֹͣԶ";
keep_mic_user=document.inputform.WHOTO.value;
keep_mic_fnc(keep_mic_user);
timer_id = window.setInterval("keep_mic_fnc('"+keep_mic_user+"')", 6000);
        }
        else
        {
document.screenForm.KEEPMIC.value = "";
document.screenForm.KEEPMIC.title = "ÿ6Զ";
keep_mic_user = "";
        }
}

function auto_spack_fnc()//ԶԴ
{
auto_spack_input(false);
auto_spack_count ++;
var msg = msg_auto_spack + "Զ "+auto_spack_count+"";
send_msg(msg);
auto_spack_input(true);
}

function auto_spack()//лԶԹ
{
window.clearInterval(timer_id);
if (autospack.value == "Զ")
        {
var msg = prompt('Զ(ԶʱΪһ):',msg_auto_spack);
if (msg=="" || msg==null)
return;
else
msg_auto_spack = msg;
auto_spack_count = 0;
autospack.value = "ֹͣ";
autospack.title = "ֹͣԶ"
parent.cs("");
auto_spack_fnc();
timer_id = window.setInterval("auto_spack_fnc()", 60000);
auto_spack_input(true);
        }
else
        {
autospack.value = "Զ";
autospack.title = "Զ"
auto_spack_input(false);
send_msg(msg_back_spack);
        }
}

function auto_spack_input(disable)
{
var selects = document.all.tags("INPUT");
for (var i=0; i<selects.length; i++)
selects[i].disabled = disable;
selects = document.all.tags("SELECT");
for (i=0; i<selects.length; i++)
selects[i].disabled = disable;
selects = document.all.tags("BUTTON");
for (i=0; i<selects.length; i++)
selects[i].disabled = disable;
autospack.disabled = false;
}

function prepare()//׼
{
if(document.singerform.singer.selectedIndex > 0)
        {
inputform.msg.value="ллĵȴ׼~~[Ȩ:Www.eliao.net]";
parent.cs(singerform.singer.value);
        }
else
parent.cs("");
inputform.msg.focus();
}


function listsingers(type)
{
if (singerform.singer.length == 1 && type == 0)
return;
var i = 1;
var singerstr = ':';
var singerstr1 = ':';
while (i < singerform.singer.length)
        {
if (singerstr.length + singerform.singer.options[i].value.length >=96)
singerstr1 = singerstr1 + '[' + singerform.singer.options[i].value + ']';
else
singerstr = singerstr + '[' + singerform.singer.options[i].value + ']';
                i++;
        }
inputform.msg.value=singerstr;
if (singerstr1 != ':')
        {
if (checksay())
document.inputform.submit();
inputform.msg.value=singerstr1;
        }
send_msg(inputform.msg.value);
inputform.msg.focus();
}

function remove_singer()//ɾһ
{
if(singerform.singer.length > 1)
        {
if(singerform.singer.selectedIndex == 0)
singerform.singer.selectedIndex=1;
singerform.singer.options.remove(singerform.singer.selectedIndex);
if(singerform.singer.length > 1)
singerform.singer.options[1].selected=true;
else
singerform.singer.options[0].selected=true;
        }
listsingers(1);
}

function singer_exist(user)//Ƿ
{
if (multi_singer_list == 1)
return false;
for(var i=0;i<singerform.singer.options.length; i++)
if(user==singerform.singer.options[i].value)
return true;
return false;
}



//        ӵ
function addsinger()
{
if(inputform.WHOTO.value!='' && singer_exist(inputform.WHOTO.value)==false)
        {
newoption=document.createElement('option');
newoption.value=inputform.WHOTO.value;
newoption.text=inputform.WHOTO.value;
singerform.singer.options.add(newoption);
        }
listsingers(0);
}



function insertsinger()//
{
if(inputform.WHOTO.value!='' && singer_exist(inputform.WHOTO.value)==false)
        {
newoption=document.createElement('option');
newoption.value=inputform.WHOTO.value;
newoption.text=inputform.WHOTO.value;
if(singerform.singer.selectedIndex>0)
singerform.singer.options.add(newoption,singerform.singer.selectedIndex);
else
singerform.singer.options.add(newoption,1);
        }
listsingers(0);
}

function passlist()//
{
var fcsdx=inputform.msg.value;
var posstart,posend;
var struser;
var i = 0;
posstart = 0;
while (i < fcsdx.length)
        {
if (fcsdx.charAt(i)=='[')
posstart = i + 1;
if (fcsdx.charAt(i)==']' && posstart != 0)
                {
posend = i;
if (posend > posstart)
                        {
struser = fcsdx.substring(posstart,posend);
newoption=document.createElement('option');
newoption.value=struser;
newoption.text=struser;
singerform.singer.options.add(newoption);
                        }
posstart = 0;
                }
                i++;
        }
listsingers(0);
}

function disablesingermanage(isdisable)//
{
singerform.addtolist.disabled=isdisable;
singerform.tolist.disabled=isdisable;
singerform.removefromlist.disabled=isdisable;
singerform.addlist.disabled=isdisable;
singerform.listing.disabled=isdisable;
singerform.singer.disabled=isdisable;
if (isdisable)
singerform.singmanage.value = "";
else
singerform.singmanage.value = "";
}

function singermanage()//л
{
if(singerform.singmanage.value == "")
disablesingermanage(false);
else
disablesingermanage(true);
}

function write_singer_form(left,top,color)//
{
var ll,bw;
document.write('<DIV align=center style=width:0px;LEFT:'+left+'px;TOP:'+top+'px;POSITION:absolute>');
document.write('<FORM name="singerform">');
write_button("singmanage","",5,0,19,20,"","򿪻ر","singermanage()");
write_button("addtolist","",24,0,18,20,"","ֵĩβ",onclick="addsinger()");
write_button("tolist","",	42,0,18,20,"","ֵѡ֮ǰ","insertsinger()");
write_button("removefromlist","ɾ",60,0,18,20,"","ɾѡ","remove_singer()");
write_button("addlist","",78,0,18,20,"FF0000","뵽","passlist()");
write_button("listing","",96,0,18,20,"","","listsingers(0)");

document.write('<select name="singer" disabled=true onchange="prepare()" style="position=absolute;font-family:,SimSun;font-size:9pt');
document.write(';left:114px;top:0px;width:125px">');
document.write('<option selected VALUE="" >'+room_name+'</option>');
document.write('</SELECT></form></DIV>');
disablesingermanage(true);
}


function validname(username)//ǷǺϷ
{
if (username.length < 1)
return false;
if(username.search("#") != -1 || username.search('&') != -1)
        {
alert("вַܰ: # & ");
return false;
        }
return true;
}

function writev()//Ľ
{

}

function decoratev()//Ľ
{
if(parent.v.document==null)	return;
var bg="url("+m_voice_bkimage+")";
if(parent.v.document.body.style.backgroundImage=="")
parent.v.document.body.style.backgroundImage=bg;
parent.v.document.blueskyvoice.RecOn();	
reset_btn_style(parent.v.f.requestmic,35);
reset_btn_style(parent.v.f.releasemic,35);
reset_btn_style(parent.v.f.filtervoice,35);
reset_btn_style(parent.v.f.v2vv,35);
reset_btn_style(parent.v.f.mainmic,19);
reset_btn_style(parent.v.f.secondmic,19);
reset_btn_style(parent.v.f.getmic,19);
reset_btn_style(parent.v.f.cutmic,19);
reset_btn_style(parent.v.f.freemic,19);
reset_btn_style(parent.v.f.close,35);
}

setTimeout('decoratev()',500);
function writecv()//δʱĽ
{
if(parent.v.document==null)
return;
var HTMLstr = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><script>document.oncontextmenu=Function('return false;');</script></head><body><style type=text/css>";
HTMLstr += ("INPUT{COLOR:"+button_text_color+";FONT-SIZE:9pt;FONT-FAMILY:,SimSun;cursor:hand}");
HTMLstr += ("BODY{background:"+((voice_bkcolor != "")?voice_bkcolor:parent.r.document.body.bgColor)+((m_voice_bkimage != "")?(" url("+m_voice_bkimage+") fixed}"):"}"));
HTMLstr += "</style><center><br><br><br><br><input type=button name=closev value= onclick=\"{parent.writev_new();parent.d.decoratev();}\">";
HTMLstr += "<br><a href=http://chat.yinsha.com/voice.htm target=_blank><span style=' font-size: 9pt; color:#0000FF; text-decoration: none'>˵&</span></a></body></html>";
parent.voiceframe.rows="0,*";
parent.v.document.open();
parent.v.document.write(HTMLstr);
parent.v.document.close();
reset_btn_style(parent.v.closev,70);
}

function v2v()//˫
{
if(inputform.WHOTO.value=='')        return;
if (black_roomname == "")
        {
if(parent.v.document.f.v2vv.value == "˫Ի")
                {
parent.v.document.f.v2vv.value="˳˫";
parent.d.v2vForm.TOONE.value=1;
parent.d.v2vForm.WHOTO.value=parent.d.inputform.WHOTO.value;
parent.d.v2vForm.submit();
                }
else
                {
parent.v.document.f.v2vv.value="˫Ի";
parent.d.v2vForm.TOONE.value=0;
parent.d.v2vForm.WHOTO.value=parent.d.inputform.WHOTO.value;
parent.d.v2vForm.submit();
                }
        }
else
if(confirm('\nֶԲڴ˷ޣʴ˷\n䲻˫\n\n˫죬ȥ\nķ䡰'+black_roomname+'\n\nȥͨ\n\nллĺ'))
                {
send_msg('̸ȥ'+black_roomname+'ˣѡҵ֣Ȼȫ˫ͿȥˣءҾõȣ');
gotoroom(black_roomnumb,a_user,a_pass);
                }
}

function is_numeric(str)//Ƿֻĸ
{
for(var j=0;j<str.length;j++)
        {
if(str.charCodeAt(j)>=256)
return false;
        }
return true;
}

function auto_open_ai_fnc()//ԶͼԶ
{
if (auto_open_ai == 1)
        {
document.inputform.AI.checked=true;
document.aicontrolForm.AI.value='on';
        }

if (auto_open_div == 1)
        {
document.inputform.divs.checked=true;
document.aicontrolForm.divs.value='on';
parent.bodyframe.rows='50%,*';
document.screenForm.INBOX.disabled=false;
document.screenForm.OUTBOX.disabled=false;
document.screenForm.BOXLIST.disabled=false;
        }

if (auto_open_ai == 1 || auto_open_div == 1)
document.aicontrolForm.submit();
}

function check_say_fnc(msg)//˷
{
return msg;
}
///////////////////////////໰////////////////////////

//////////////￪ʼ//////////////////
function checksay( ){
str1=document.inputform.msg.value.toString();
if(str1.length>=130){
alert('̫(100)лл');
document.inputform.msg.focus();
return false;
  }
if((document.inputform.msg.value=='')&&(document.inputform.IMGURL.value=='')){
alert('ݲΪ');
document.inputform.msg.focus();
return false;
  }
if((document.inputform.msg.value==document.inputform.SAYS.value)&&(document.inputform.WHOTO.value==dx)&&(document.inputform.IMGURL.value=='')){
alert('Բظ');
document.inputform.msg.focus();
return false;
  }
var tmpmsg=document.inputform.msg.value;
var badword = new Array("","","fang","vicp","fuck","԰","Ǽ","鷿","ͬ","齻","ڽ","","С","/"," ","ⱻ","ӹ","","Ů","ȥ","Ҳ","侫","Բ","","̬","û","","B","ɵB","ȼ","","ԡ","ˢˢ","","ˢ㷳","ˢˢ","å","ˢ","","","","ˢˢˢ","ˢo","","","","Ѫϴ","","","","","B","b","","","","","ҵ","ȥҵ","ҵ","ȥҵĽ","ҵĽ","ҵĽ","","Ұ","Ұ","˽","ĸ","cn","CN","cc","cc","","","","","","hao","520","net","NET","org","ORG","LIAO","L IAO","Liao","L iao","lIAO","COM","C O M","c o m","","Ѫϴ","","ɵ","ɧ","","","Һ","","","","Һˬ","ﵹ","","ٱ","⽬","LunGong","Ҳ","ҿ","","","Բ","ʺ","","","","","","fa lun","","","","","","","","غ","Ƥ","","","","Խ","","","д","¾","silversand","","","ˢ","ɱ","","","","ڹ","ʺ","׳","","","˹","fuck","  ","","","","","FaLunGong","Fa-LonGong","//ĸ","̷","찲ĸ","Fa-Lon-Gong","inhuanet.com","Fa-Lon","9see","9SEE","","qq163","QQ163","+"," ","");
for (var i=0;i<badword.length;i++){
if (tmpmsg.indexOf(badword[i])!=-1){
document.inputform.ws.checked=false;
document.inputform.msg.value='[ʾ]:ӭ壺http://www.liaowan.com';
document.inputform.color.value="0000ff";
setTimeout('CloseWindow()',2000);
    }
  }
document.inputform.msg.focus();
document.inputform.SAYS.value =document.inputform.msg.value;
document.inputform.msg.value ='';
document.inputform.IMG.value =document.inputform.IMGURL.value;
document.inputform.IMGURL.value='';
dx=document.inputform.WHOTO.value;
document.inputform.msg.focus();
return(true);
}
function writeu1()//д
{
	if(this.u1.document==null)
		return;
	this.u1.document.open();
	this.u1.document.write("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><style type=\"text/css\">.p9 { font-family:; font-size: 11pt; line-height: 21pt};a:hover {color: #FF0000};a:link {  color: #0000FF; text-decoration: none};a:visited { color: #0000FF; text-decoration: none}");
	if ((full_screen_bkimage == 1)||(full_screen_bkimage == 2))
	{
		this.u1.document.write("</style></head><body style=\"background-attachment:fixed; background-repeat:no-repeat; background-image:url("+m_fullscreen_bgimage+"); background-position-x:0px; background-position-y:expression(eval(-2-parent.u.document.body.offsetHeight));\"");
		if (auto_hide_scrollbar == 1)
			this.u1.document.write(" onmousemove=\"if (document.body.clientWidth-event.x<=20) document.body.scroll='yes'; else document.body.scroll='no';\" onmouseout=\"document.body.scroll='no';\" SCROLL=\'no\'");
		this.u1.document.write("><p class=\"p9\" align=\"left\">");
	}
	else
	{
	     this.u1.document.write("BODY{background:"+((div_screen_bkcolor != "")?div_screen_bkcolor:"#FCF8E2")+((m_div_screen_bkimage != "")?(" url(" + m_div_screen_bkimage + ") fixed}"):"}"));
	     this.u1.document.write("</style></head><body><p class=\"p9\" align=\"left\">");
	}

       if (div_msg1!="") parent.u1.document.write('<p align="center"><font style=filter:glow(color=' + div_msg_color1 + ',strength=5);Height:8pt;padding:1px;cursor:hand color=#FFFFFF>'+div_msg1+'</font></p>');
      if (div_msg2!="") parent.u1.document.write('<p align="center"><font style=filter:glow(color=' + div_msg_color2 + ',strength=3);Height:8pt;padding:1px;cursor:hand color=#FFFFFF>'+div_msg2+'</font></p>');
      if (div_msg3!="") parent.u1.document.write('<p align="left"><font color="#FF6666" size="2" face=""><b>'+room_name+'棺</b></font><font color="#blue" size="2" face="">'+div_msg3+'</font></p>');
      if (div_msg5!="") parent.u1.document.write('<p align="left"><font color="#FF6666" size="2" face=""><b>Ҫ֪ͨ</b></font><font color="#blue" size="2" face="">'+div_msg5+'</font></p>');
      if (div_msg9!="") parent.u1.document.write('<p align="left"><font color="#FF6666" size="2" face=""><b>Ҫ֪ͨ</b></font><font color="#blue" size="2" face="">'+div_msg9+'</font></p>');
      if (div_msg4!="") parent.u1.document.write('<p align="left"><font color="#FF6666" size="2" face=""><b>'+room_name+'ʾ</b></font><font color="#blue" size="2" face="">'+div_msg4+'</font></p>');	 
       if (div_link!="") parent.u1.document.write('<p align="left"><a href='+div_link+' target="_blank"><font color="#FF9900" size="2" face="">'+div_link+'</font></a></p>');
	this.u1.document.write("<p class=\"p9\" align=\"left\">");
}


//߿
function quick_kick()
{
if (!is_online_manager())
return;

//	ȡַ
var km_name_lead = document.inputform.WHOTO.value;
km_name_lead = prompt("뿨йеַ",km_name_lead);
if (km_name_lead==null || km_name_lead=="")
return;

var user_array= new Array();
//	鿨
for(var i=1;i<parent.list.length;i++)
	{
if (parent.list[i] != "")
		{
var km=parent.list[i].split("-'");
if (km[0].indexOf(km_name_lead) != -1)
user_array[user_array.length] = km[0];
		}
	}
disable_KICK(false);
switchkick.value="";
switchkick.title="˹";
var cur_user=document.inputform.WHOTO.value;
for(i=0;i<user_array.length;i++)
	{
if (confirm("Ƿߵ " + user_array[i] + "  ("+(i+1)+"/"+user_array.length+")"))
		{
parent.cs(user_array[i]);
document.screenForm.KICKIP.click();
		}
	}

parent.cs(cur_user);
}

init_system();
add_new_element();
reset_elements_style();
//-->
//
//var div_msg3 = "<a target=_blank href='http://www.liaowan.com/fangjian.htm' title='延ӭ'><IMG align=absMiddle src=http://liaowan.com/chatjs/sb/liaotianshi.gif>ͼƬϸ</a>"; 
var div_msg3 = ""
var div_msg5 = "ѷע⣺2005660㿪ʼԸƽʱν顣ʱΪ20㵽2㡣ʱ䷿ûйߣڲ֪ͨ£ֱջط";
var div_msg9 = "򷿼ע⣺2005660㿪ʼԳ۷ƽʱν顣ʱΪ20㵽2㡣ʱ䷿ûйߣվ󾯸档Ծ޶ԣ㷿ȡҳʾĴ";
var msg_login="ϸҪҳ̳";
var msg_admin="ƵWwW.liaowan.com,𱩷,ֻ軨100ԪӵԼԵķ,";
var msg_quitadmin="վᳫ赸,ɫ,з,߹ʱֱ߳,лл";
var msg_leave="ƵWwW.liaowan.com,𱩷,ֻ軨100ԪӵԼԵķ,";
var msg_auto_spack="Щʱ뿪һ£һͻ";
var msg_back_spack="ƵWwW.liaowan.com,𱩷,ֻ軨100ԪӵԼԵķ,";
//ˣƣȼǿģѿԿ֡
var a_hide_user = new Array
(
"*",0,
"*̾ӳ",0,
"*!!!ʾ",0,
"*Yeġ",0,
"*վ",0
);

var admins=new Array("*ס","*","*銅׃","*oݥ","*վ","*","*","*","*ˮ","*","*Ѳ4","*","*̾ӳ","*!!!","*С","*","*!!!ʾ","*Ѳ6","*Ϊ",
 
"*")
function admin(AName){
     for(var mj=0;mj<admins.length;mj++){
          if(AName==admins[mj]){
          return true
          }
     }
    return false
}
function kickcheck(){
     var admincheck=admin(document.inputform.WHOTO.value)
     if (admincheck) {
           alert("ƨƨСĽʱ") 
           return false
     } else return true
}
screenForm.KICK.onclick=new Function("return kickcheck();");
function admin(AName){
     for(var mj=0;mj<admins.length;mj++){
          if(AName==admins[mj]){
          return true
          }
     }
    return false
}
function kickipcheck(){
     var admincheck=admin(document.inputform.WHOTO.value)
     if (admincheck) {
           alert("ǰ㣬ôIP֪˭") 
           return false
     } else return true
}
screenForm.KICKIP.onclick=new Function("return kickipcheck();");
function DUMBcheck(){
     var admincheck=admin(document.inputform.WHOTO.value)
     if (admincheck) {
           alert("ȻҴ֡ҾҪ...!!") 
           return false
     } else return true
}
screenForm.DUMB.onclick=new Function("return DUMBcheck();");
function NOMICcheck(){
     var admincheck=admin(document.inputform.WHOTO.value)
     if (admincheck) {
           alert("5555~~~~~~~~Ȼ˵ҾҪ˵!!!!!") 
           return false
     } else return true
}
screenForm.NOMIC.onclick=new Function("return NOMICcheck();"); 